package com.haixiaoke.saas.house.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.cleaner.domain.SweepProcessRecord;
import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;


/**
 * 打扫记录对象 biz_house_sweep
 *
 * @author xiaolong
 * @date 2024-05-11
 */
@Data
public class HouseSweep extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 打扫记录id
     */
    private String houseSweepId;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 租户id
     */
    @Excel(name = "租户id")
    private String tenantId;

    /**
     * 房屋id
     */
    @Excel(name = "房屋id")
    private String houseId;

    /**
     * 保洁人员信息id
     */
    @Excel(name = "保洁人员信息id")
    private Long cleanerId;

    /**
     * 保洁用户id
     */
    @Excel(name = "保洁用户id")
    private Long cleanerUserId;

    /**
     * 保洁人员名称
     */
    @Excel(name = "保洁人员名称")
    private String homeSweepName;

    /**
     * 房间详细地址
     */
    @Excel(name = "房间详细地址")
    private String fullAddress;

    /**
     * 打扫状态：1.待指派；2.已指派；3.已完成
     */
    @Excel(name = "打扫状态：1.待指派；2.已指派；3.已完成")
    private String sweepState;

    /**
     * 打扫分类：1.日常打扫；2.换退打扫
     */
    @Excel(name = "打扫分类：1.日常打扫；2.换退打扫")
    private String sweepType;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /**
     * 预计开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "预计开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scheduledTime;

    /**
     * 操作人id
     */
    @Excel(name = "操作人id")
    private Long operatorId;

    /**
     * 逻辑删除标志(0代表存在
     */
    private String delFlag;

    /**
     * 打扫流程记录集合
     */
    private List<SweepProcessRecord> sweepProcessRecordList;

    /**
     * 打扫记录id集合
     */
    private String[] houseSweepIds;

    /**
     * 乐观锁版本号
     */
    private Integer version;
}
